/*
 * \file RaceWidget.h
 *
 * \date Created on: Jan 21, 2009
 * \author sarah
 */

#ifndef RACEWIDGET_H_
#define RACEWIDGET_H_

#include <QWidget>

#include "ui_racepage.h"

class Race;
class CharacterData;

class RaceWidget: public QWidget
{
    Q_OBJECT
public:
    RaceWidget(CharacterData *data, QWidget *parent = 0);
    virtual ~RaceWidget();

private Q_SLOTS:
    void on_addRacePushButton_clicked(bool);
    void on_chooseRaceComboBox_currentIndexChanged(const QString &);
    void updateRaceList();

private:
    Ui::RacePageWidget mPage;
    Race *mRace;
    CharacterData *mData;
};

#endif /* RACEWIDGET_H_ */
